package com.brspace.qualitycontrol.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 收文
 * </p>
 *
 * @author ${author}
 * @since 2021-04-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CollectWrit对象", description="收文")
public class CollectWrit implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "uuid")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "收文文号")
    private String writNum;

    @ApiModelProperty(value = "收文标题")
    private String title;

    @ApiModelProperty(value = "主题词")
    private String theme;

    @ApiModelProperty(value = "来文单位")
    private String comeUnit;

    @ApiModelProperty(value = "来文名称")
    private String comeName;

    @ApiModelProperty(value = "收文时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date putWrit;

    @ApiModelProperty(value = "来文文号")
    private String comeWrit;

    @ApiModelProperty(value = "性质（可选）")
    private String nature;

    @ApiModelProperty(value = "主或抄（主或抄）")
    private String mainCopy;

    @ApiModelProperty(value = "文件/附件")
    private String annex;

    @ApiModelProperty(value = "份数")
    private String num;

    @ApiModelProperty(value = "收文类型")
    private String putType;

    @ApiModelProperty(value = "收件人")
    private String collectUser;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "领导批示")
    private String bossBatch;

    @ApiModelProperty(value = "办公情况")
    private String common;

    @ApiModelProperty(value = "状态（0，代办，1，已办）")
    private String state;

    @ApiModelProperty(value = "创建时间")
      @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "节点id")
    private int nodeId;

    @ApiModelProperty(value = "收件人id")
    private String collectUserId;

    @ApiModelProperty(value = "流程条件")
    private String progress;

    @ApiModelProperty(value = "办公室主任id")
    private String officeId;

    @ApiModelProperty(value = "办公室主任姓名")
    private String officeName;

    @ApiModelProperty(value = "办公室主任意见")
    private String officeOpinion;

    @ApiModelProperty(value = "分管领导id")
    private String branchLeaderId;

    @ApiModelProperty(value = "分管领导姓名")
    private String branchLeaderName;

    @ApiModelProperty(value = "分管领导意见")
    private String branchLeaderOpinion;

    @ApiModelProperty(value = "主要领导id")
    private String keyLeaderId;

    @ApiModelProperty(value = "主要领导姓名")
    private String keyLeaderName;

    @ApiModelProperty(value = "主要领导意见")
    private String keyLeaderOpinion;

    @ApiModelProperty(value = "科室领导id")
    private String departmentLeaderId;

    @ApiModelProperty(value = "科室领导姓名")
    private String departmentLeaderName;

    @ApiModelProperty(value = "科室领导意见")
    private String departmentLeaderOpinion;

    @ApiModelProperty(value = "承办人id")
    private String undertakerId;

    @ApiModelProperty(value = "承办人姓名")
    private String undertakerName;

    @ApiModelProperty(value = "承办人意见")
    private String undertakerOpinion;
}
